﻿<controls:FloatableWindow
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=FloatableWindow"
      xmlns:controlsToolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"

           xmlns:controls1="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls" 
    x:Class="CityLife.Controls.AddNeighbours"
           Width="400" Height="300" 
           Title="AddNeighbours">
	<Grid x:Name="LayoutRoot" Margin="2">
		<Grid.RowDefinitions>
			<RowDefinition />
			<RowDefinition Height="Auto" />
		</Grid.RowDefinitions>
        
        
    

		<Button x:Name="CancelButton" Content="Cancel" Click="CancelButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,0,0" Grid.Row="1" />
		<Button x:Name="OKButton" Content="OK" Click="OKButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,79,0" Grid.Row="1" />
		
        <controls1:TabControl Margin="0,0,8,8">
            <controls1:TabItem Header="Friends">


                <controlsToolkit:BusyIndicator  Name="FriendsListLoader"
                    IsBusy="False"
                    DisplayAfter="0"
                    BusyContent="loading...">                   
            
                <ListBox x:Name="FriendsList" SelectionChanged="FriendsList_SelectionChanged">

                    <ListBox.ItemTemplate>
                        <DataTemplate>
                            <StackPanel Orientation="Horizontal">
                                <TextBlock Text="{Binding name}"></TextBlock>
                            </StackPanel>

                        </DataTemplate>
                    </ListBox.ItemTemplate>
                </ListBox>

                </controlsToolkit:BusyIndicator>




            </controls1:TabItem>
			<controls1:TabItem Header="Metropoline friends">
                <controlsToolkit:BusyIndicator Name="PlayersListLoader"
                    IsBusy="False"
                    DisplayAfter="0"
                    BusyContent="loading...">
                    <ListBox x:Name="PlayersList" SelectionChanged="PlayersList_SelectionChanged">

                        <ListBox.ItemTemplate>
                            <DataTemplate>
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock Text="{Binding name}"></TextBlock>
                                </StackPanel>

                            </DataTemplate>
                        </ListBox.ItemTemplate>
                    </ListBox>
                </controlsToolkit:BusyIndicator>




            </controls1:TabItem>
			<controls1:TabItem Header="Invite by email">
				<Grid/>
			</controls1:TabItem>
		</controls1:TabControl>
	</Grid>
</controls:FloatableWindow>